window.addEventListener("load", function () {
	$(".right li");
	// 遍历伪数组
	$(".right li").forEach(function (v) {
		console.log(111);
		v.addEventListener("click", function () {
			$("li").forEach(function (v) {
				v.classList.remove("active");
			});
			v.classList.add("active");
			if (v.textContent === "扫码登陆") {
				$(".scan").style.opacity = 1;
				$(".scan").style.zIndex = 1;
			} else {
				$(".scan").style.opacity = 0;
				$(".scan").style.zIndex = -1;
			}
		});
	});
});
